package com.example.springvaadin.views;

import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.html.H1;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.component.UI;
import com.vaadin.flow.component.avatar.Avatar;
import com.vaadin.flow.component.html.H2;
import com.vaadin.flow.component.html.H3;
import com.vaadin.flow.component.html.H4;

@Route("")
public class MainView extends VerticalLayout {

    public MainView() {
        add(new H1("Hello 111Vaadin"));
        Avatar avatar = new Avatar();
        H2 heading2 = new H2("Heading 2");
        Button button2 = new Button("Button");
        button2.setThemeName("primary");
        Button button = new Button("Click me!");
        add(avatar);
        add(heading2);
        add(button2);
        add(button);
    }
}